//--></SCRIPT><META NAME="DESCRIPTION" CONTENT="Internet Information Services reference information">
<META HTTP-EQUIV="PICS-Label" CONTENT='(PICS-1.1 "<http://www.rsac.org/ratingsv01.html>" l comment "RSACi North America Server" by "inet@microsoft.com <mailto:inet@microsoft.com>" r (n 0 s 0 v 0 l 0))'>
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="MS-IT-LOC" Content="Internet Information Services">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H2><A NAME="_session_variables"></A><SUP> <% If Request("DontFrame")<>1 Then Response.Redirect "/iissamples/sdk/asp/docs/SampFram.asp?ovfile=/iishelp/iis/htm/asp/asps0ur7.asp&srcfile=Applications/Session" %></SUP>Session Variables</H2>
<H6>Overview</H6>
<P>You can use the <B>Session</B> object to store variables that will remain available for the length of the session, and, therefore, have session scope. For instance, if you have created an online shopping application, you could define <B>Session</B> object variables that allow you to track how much merchandise the shopper has purchased or how much money is owed.</P>
<H6>Code Tour</H6>
<P>This example uses the variable <I>SessionCount</I> to store the number of times you have clicked the <I>Click here to visit it again </I>link.</P>
<H6>Remarks</H6>
<P>If you visit this sample several times, then visit other sections of this documentation before visiting this sample again, the count will pick up where you left off. This is because the server's <B>Session</B> object that is associated with your particular Web session will not be destroyed until your session has timed out.</P>